from Core import view, world, AxisAngle, Vec3, View3d, Drawable, Pickable
from OpenGL.GL import *
from time import sleep


class MyLine(Drawable):
        

    def draw(self, v):
        glPushAttrib(GL_CURRENT_BIT | GL_ENABLE_BIT | GL_LINE_BIT)
        glLineWidth(5)
        glColor3d(1,0,0)
        glBegin(GL_LINES);
        glVertex3d(0,0,0);
        glVertex3d(1,1,0);
        glEnd();
        glPopAttrib()


v = view()
v.addDrawable(MyLine())


